package com.piccolo.wrapper.client.component;

import com.piccolo.wrapper.client.component.Overlay.PTextOverlay;
/**
 * @author Maria Patrickson 
 * @version 1.0
 */
public class PText extends PNode
{
	/**
	 * Creates a PText node with the specified text. The default styling is "rgb(0, 0, 0)". 
	 * @param text
	 */
	public PText(String text) 
	{
		this(text, "rgb(0,0,0)");
	}
	
	/**
	 * Creates a PText node with the specified text and style. 
	 * @param text
	 * @param style
	 */
	public PText(String text, String style)
	{
		overlay = PTextOverlay.create(text, style);
	}
}
